package com.example.blog.service;

import com.example.blog.config.page.PageRequest;
import com.example.blog.entity.Tag;

import java.util.List;

/**
 * @Author: lu
 * @Date: 2024-01-15-16:53
 * @Description:
 */
public interface TagService {
    List<Tag> find(PageRequest pageRequest);

    void create(Tag tag);

    int  delete(Integer id);

    void update(Tag tag);

    /**
     * 批量添加
     * @param tags
     * @throws Exception
     */
    boolean batchAddTag(String tags) throws  Exception;

    /**
     * 批量删除标签
     * @param ids
     * @return
     */
    boolean batchDeleteTag(String ids);


}
